README File for:

"Overestimation of the Level of Democracy among Citizens in Nondemocracies"

Comparative Political Studies

Eddy S. F. Yeung, Emory University

List of files required to replicate each figure in the main text:
- Figure 1: "main-figures.R" (code), "dataset_cleaned.dta" (data), and "country-label.csv" (data)
- Figure 2: "main-figures.R" (code), "dataset_cleaned.dta" (data), and "country-label.csv" (data)
- Figure 3: "setup.do" (code) and "dataset_cleaned.dta" (data)
- Figure 4: "main-figures.R" (code), "dataset_cleaned.dta" (data), and "country-label.csv" (data)
- Figure 5: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Figure 6: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)
- Figure 7: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)

List of files required to replicate each table in the main text:
- Table 1: "setup.do" (code) and "dataset_cleaned.dta" (data)
- Table 2: "main-analysis.do" (code) and "dataset_final.dta" (data)

List of files required to replicate each figure in the appendix:
- Figure S1: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Figure S2: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Figure S3: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Figure S4: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Figure S5: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Figure S6: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Figure S7: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Figure S8: "main-figures.R" (code), "dataset_cleaned.dta" (data), and "country-label.csv" (data)
- Figure S9: "main-figures.R" (code), "dataset_cleaned.dta" (data), and "country-label.csv" (data)
- Figure S10: "main-figures.R" (code), "dataset_cleaned.dta" (data), and "country-label.csv" (data)
- Figure S11: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)
- Figure S12: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)
- Figure S13: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)
- Figure S14: "setup.do" (code) and "dataset_cleaned.dta" (data)
- Figure S15: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)
- Figure S16: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)
- Figure S17: "rob-check_summary.R" (code) and "rob-check_summary.xlsx" (data)
- Figure S18: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Figure S19: "sensitivity-analysis.R" (code) and "dataset_final.dta" (data)"
- Figure S20: "sensitivity-analysis.R" (code) and "dataset_final.dta" (data)"
- Figure S21: "sensitivity-analysis.R" (code) and "dataset_final.dta" (data)"

List of files required to replicate each table in the appendix:
- Table S1: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Table S2: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Table S3: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Table S4: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Table S5: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Table S6: "setup.do" (code) and "dataset_cleaned.dta" (data)
- Table S7: "supp-analysis.do" (code) and "dataset_cleaned.dta" (data)
- Table S8: "main-analysis.do" (code) and "dataset_final.dta" (data)
- Table S9: "main-analysis.do" (code) and "dataset_final.dta" (data)

Others:
- To replicate the analysis reported in Footnote 24, please use "main-analysis.do" (code) and "dataset_final.dta" (data).
- To replicate the analysis reported on page S11 of the Supplemental Appendix, please use "main-analysis.do" (code) and "dataset_final.dta" (data).
- To replicate the cluster-robust standard errors based on wild bootstrap, please use "cgmwildboot.ado" and "cgmreg.ado." Alternatively, they can be downloaded directly from https://sites.google.com/site/judsoncaskey/data.
- The log file for the main analyses is "main-analysis.smcl," which is obtained after running the code in "main-analysis.do."